package com.example.demo.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entry.Timeinfo;
import com.example.demo.service.TimeinfoService;
import com.example.demo.mapper.TimeinfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 16040
* @description 针对表【timeinfo】的数据库操作Service实现
* @createDate 2022-05-08 15:09:53
*/
@Service
public class TimeinfoServiceImpl extends ServiceImpl<TimeinfoMapper, Timeinfo>
implements TimeinfoService{

    @Autowired
    TimeinfoMapper timeinfoMapper;

    @Override
    public List<Timeinfo> getAll(String img1) {
        return timeinfoMapper.getAll(img1);
    }

    @Override
    public Page<Timeinfo> getAll(Page page, QueryWrapper queryWrapper) {
        return timeinfoMapper.selectPage(page,queryWrapper);
    }
}
